<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_es_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_es_id" data-rule="required" data-source="oar/es/index" class="form-control selectpage" name="row[oar_es_id]" type="text" value="{$row.oar_es_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_order_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_order_id" data-rule="required" data-source="oar/order/index" class="form-control selectpage" name="row[oar_order_id]" type="text" value="{$row.oar_order_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_out_account_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_out_account_id" data-rule="required" data-source="oar/out/account/index" class="form-control selectpage" name="row[oar_out_account_id]" type="text" value="{$row.oar_out_account_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_out_account_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_out_account_title" data-rule="required" class="form-control" name="row[oar_out_account_title]" type="text" value="{$row.oar_out_account_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_in_account_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_in_account_id" data-rule="required" data-source="oar/in/account/index" class="form-control selectpage" name="row[oar_in_account_id]" type="text" value="{$row.oar_in_account_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_in_account_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_in_account_title" data-rule="required" class="form-control" name="row[oar_in_account_title]" type="text" value="{$row.oar_in_account_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_money" data-rule="required" class="form-control" step="0.01" name="row[oar_money]" type="number" value="{$row.oar_money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-oar_type" data-rule="required" class="form-control selectpicker" name="row[oar_type]">
                {foreach name="oarTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.oar_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_account_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-oar_account_type" data-rule="required" class="form-control selectpicker" name="row[oar_account_type]">
                {foreach name="oarAccountTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.oar_account_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="oarStatusList" item="vo"}
            <label for="row[oar_status]-{$key}"><input id="row[oar_status]-{$key}" name="row[oar_status]" type="radio" value="{$key}" {in name="key" value="$row.oar_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_note')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_note" data-rule="required" class="form-control" name="row[oar_note]" type="text" value="{$row.oar_note|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[oar_create_time]" type="text" value="{:$row.oar_create_time?datetime($row.oar_create_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oar_is_deleted')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oar_is_deleted" data-rule="required" class="form-control" name="row[oar_is_deleted]" type="number" value="{$row.oar_is_deleted|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
